import http from '@/qly/http'

export default {
    //下单
    placeOrder: data => http.post('/api/order/placeOrder', data),
    //订单列表
    index: data => http.get('/api/order/index', data),
    //取消订单
    cancel_order: data => http.post('/api/order/cancel_order', data),
    //订单支付
    order_pay: data => http.post('/api/order/order_pay', data),
    //订单详情
    info: data => http.post('/api/order/info', data),
    //商家确认发货
    confirmDelivery: data => http.post('/api/order/confirmDelivery', data),
    //用户确认收货
    receiving: data => http.post('/api/order/receiving', data),
    //订单评论
    orderComment: data => http.post('/api/goods_comment/comment', data),
    
    order_refund: {
        //订单申请售后
        apply: data => http.post('/api/order_refund/apply', data),
        //订单申请售后
        info: data => http.get('/api/order_refund/info', data),
        //订单驳回、通过
        check: data => http.post('/api/order_refund/check', data),
    }

}
